import request from '@/utils/request'

// 查询综合绩效列表
export function listPerformance(query) {
  return request({
    url: '/teacher/performance/list',
    method: 'get',
    params: query
  })
}

// 查询综合绩效详细
export function getPerformance(id) {
  return request({
    url: '/teacher/performance/' + id,
    method: 'get'
  })
}

// 新增综合绩效
export function addPerformance(data) {
  return request({
    url: '/teacher/performance/add',
    method: 'post',
    data: data
  })
}

// 修改综合绩效
export function updatePerformance(data) {
  return request({
    url: '/teacher/performance/update',
    method: 'post',
    data: data
  })
}

// 删除综合绩效
export function delPerformance(id) {
  return request({
    url: '/teacher/performance/' + id,
    method: 'post'
  })
}
